package com.sunshine.spring.beans.constructor;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @Author: WeiHong
 * @Date: 2017/3/20 9:22
 */
public class App {
    public static void main(String[] args) {

        ApplicationContext context = new ClassPathXmlApplicationContext("spring/beans.xml");
        Developer developer = (Developer) context.getBean("developer");
        System.out.println(developer.toString());
    }
}
